/*
 * los1_func.c
 *
 *  Created on: 17 mar 2014
 *      Author: krzysiek
 */
#include <stdlib.h>
#include "los1.h"

int losuj() {
	int n;

	n = rand() % 10 + 1;

	return n;
}
void sortuj(int * tab) {
	int i, j;
	int temp = 0;

	for(i=0; i<MAX; i++) {
		for(j=i; j<MAX; j++)
			if(tab[i] < tab[j]) {
				temp = tab[i];
				tab[i] = tab[j];
				tab[j] = temp;
			}
	}
}
